package com.healthcare.admin.service.impl;

import com.healthcare.admin.mapper.PatientMapper;
import com.healthcare.admin.pojo.Patient;
import com.healthcare.admin.pojo.Referral;
import com.healthcare.admin.mapper.ReferralMapper;
import com.healthcare.admin.service.ReferralService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.healthcare.admin.vo.AdminStatisticsDailyVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import java.util.List;

/**
 * <p>
 * 转诊表 服务实现类
 * </p>
 *
 * @author 新华医院转诊联盟
 * @since 2020-04-12
 */
@Service
public class ReferralServiceImpl extends ServiceImpl<ReferralMapper, Referral> implements ReferralService {
    @Autowired
    private ReferralMapper referralMapper;

    @Override
    public List<AdminStatisticsDailyVo> selectGmtcreateTime(String begin, String end) {
        return referralMapper.selectGmtcreateTime(begin,end);
    }

    @Override
    public List<AdminStatisticsDailyVo> selectSuccessfulTime(String begin, String end) {
        return referralMapper.selectSuccessfulTime(begin,end);
    }

    @Override
    public List<AdminStatisticsDailyVo> selectGroupTime(String begin, String end) {
        return referralMapper.selectGroupTime(begin,end);
    }

    @Override
    public List<AdminStatisticsDailyVo> selectRefusedTime(String begin, String end) {
        return referralMapper.selectRefusedTime(begin,end);
    }
}
